package com.zyf.feign;

import com.zyf.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhaoYuFei
 */
@FeignClient("user-service")
public interface UserFeign {
    @GetMapping("/user/getByUsername")
    User getByUserName(@RequestParam("username") String username);
}
